package com.spring.gop.proj.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.spring.gop.proj.dao.mapper.FaqMapper;
import com.spring.gop.proj.interfaces.FaqDao;
import com.spring.gop.proj.model.Faq;

@Repository
public class FaqDaoImpl implements FaqDao{

	@Autowired FaqMapper faqMapper;
	
	public List<Faq> selectFaqt(){
		return faqMapper.selectFaqt();
	}
	public List<Faq> selectFaqu(){
		return faqMapper.selectFaqu();
	}
	public List<Faq> selectFaqp(){
		return faqMapper.selectFaqp();
	}
	public List<Faq> selectFaqc(){
		return faqMapper.selectFaqc();
	}
	public List<Faq> selectFaqe() {
		return faqMapper.selectFaqe();
	}
	public List<Faq> selectFaqs(){
		return faqMapper.selectFaqs();
	}
	public Faq selectFaq(int num) {
		return faqMapper.selectFaq(num);
	}
	public void insertFaq(Faq faq) {
		faqMapper.insertFaq(faq);
	}
	public void readcount(int num) {
		faqMapper.readcount(num);
	}
	public void updateFaq(Faq faq) {
		faqMapper.updateFaq(faq);
	}
	public void delFaq(int num){
		faqMapper.delFaq(num);
	}
}
